home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / src / out-of-phase-102-c / OutOfPhase 1.02 Source / OutOfPhase Folder / StaffCalibration.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-23  |  1.4 KB  |  47 lines  |  [TEXT/KAHL]

  1. /* StaffCalibration.h */
  2.  
  3. #ifndef Included_StaffCalibration_h
  4. #define Included_StaffCalibration_h
  5.  
  6. /* StaffCalibration module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* Screen */
  12. /* Frequency */
  13. /* NoteObject */
  14. /* Memory */
  15.  
  16. #include "Screen.h"
  17.  
  18. /* get the maximum number of vertical pixels needed to represent score range */
  19. OrdType                        MaxVerticalSize(void);
  20.  
  21. /* get the pixel offset of the center note */
  22. OrdType                        GetCenterNotePixel(void);
  23.  
  24. /* convert pitch to vertical pixel offset. */
  25. OrdType                        ConvertPitchToPixel(short HalfStep, unsigned short SharpFlatFlags);
  26.  
  27. /* convert pixel offset to halfstep value */
  28. short                            ConvertPixelToPitch(OrdType Pixel);
  29.  
  30. /* get statically allocated list of major staff lines */
  31. short*                        GetMajorStaffList(void);
  32.  
  33. /* get length of staff list */
  34. long                            GetMajorStaffListLength(void);
  35.  
  36. /* get dynamically allocated list of minor staff lines */
  37. short*                        GetMinorStaffList(void);
  38.  
  39. /* set up note.  Flags is the attributes flags field from the note (make sure */
  40. /* that neither the flat nor sharp flag is set in it).  Pitch will contain the */
  41. /* pitch value.  Sharp and Flat contain flags indicating whether the user wants */
  42. /* the note to be sharp or flat, and Pixel contains the screen location. */
  43. void                            SetUpNoteInfo(short* Pitch, unsigned long* SharpFlatThing,
  44.                                         MyBoolean Sharp, MyBoolean Flat, OrdType Pixel);
  45.  
  46. #endif
  47.